﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace _1_Interfaces.Models.Tables.Cjw
{
    /// <summary>
    /// 没有去医院的患者和医生聊天的表
    ///</summary>
    [SugarTable("chatList")]
    public class ChatList
    {
        /// <summary>
        /// id自增 
        ///</summary>
         [SugarColumn(ColumnName="chatId" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int ChatId { get; set; }
        /// <summary>
        /// 医生帐号 
        ///</summary>
         [SugarColumn(ColumnName="docName"    )]
         public string DocName { get; set; }
        /// <summary>
        /// 小程序openId 
        ///</summary>
         [SugarColumn(ColumnName="openId"    )]
         public string OpenId { get; set; }
        /// <summary>
        /// 0等待医生回复 1医生已回复 
        ///</summary>
         [SugarColumn(ColumnName="state"    )]
         public int? State { get; set; }
        /// <summary>
        /// 小程序消息发送时间 
        ///</summary>
         [SugarColumn(ColumnName="startTime"    )]
         public string StartTime { get; set; }
        /// <summary>
        /// 医生发消息时间 
        ///</summary>
         [SugarColumn(ColumnName="endTime"    )]
         public string EndTime { get; set; }
        /// <summary>
        /// 小程序网名 
        ///</summary>
         [SugarColumn(ColumnName="wxName"    )]
         public string WxName { get; set; }
        /// <summary>
        /// 小程序发送的消息内容 
        ///</summary>
         [SugarColumn(ColumnName="appContent"    )]
         public string AppContent { get; set; }
        /// <summary>
        /// 医生发送的消息 
        ///</summary>
         [SugarColumn(ColumnName="docContent"    )]
         public string DocContent { get; set; }
        /// <summary>
        /// 评分  -1未评价 1 一分 2 二分 3 三分 4四分 5五分 
        ///</summary>
         [SugarColumn(ColumnName="rate"    )]
         public int? Rate { get; set; }
    }
}
